<?php
namespace app\admin\controller;
use think\Request;

/**
 * 新闻管理
 */
class Manager extends Base
{
	public $req;
	protected $ManagerModel;

	function __construct()
	{
		parent::__construct();
		$this->req = Request::instance();
		$this->ManagerModel = model('ManagerModel');
	}

	/**
	 * 管理员列表
	 */
	public function managerList()
	{
		if ($this->req->isPost()) {
			$nlist = $this->ManagerModel->select();
			return layuiJson(0, '', count($nlist), $nlist);

		} else {
			return $this->fetch('system/managerList');
		}
	}


}